package com.example.springtest;

import com.example.applicationcontext.ClassPathXmlApplicationContext;
import com.example.entity.User;

public class TestXML {
    public static void main(String[] args) throws Exception {
        ClassPathXmlApplicationContext applicationContext = new ClassPathXmlApplicationContext("spring.xml");
        User user = (User) applicationContext.getBean("user");
        System.out.println(user);
    }

}
